<?php

class Administrador_Form_CadastrarTime extends Zend_Form
{


    public function init()
    {
        $this->setMethod('post');

        $time = $this->addElement('text', 'time', array(
            'label'      => 'Nome do time:',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'validators' => array(
                array('validator' => 'StringLength', 'options' => array(1, 30))
            )

        ));


        //botao de inserir time
        $criar = $this->addElement('submit', 'submit', array(
            'ignore'   => true,
            'label'    => 'Inserir',
        ));

        // alguma protecao contra flood.
        $this->addElement('hash', 'csrf', array(
            'ignore' => true,
        ));


    }



}

